package hr_project.hr.biz.Emp;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import hr_project.hr.entity.Emp;
import hr_project.hr.util.QueryEmp;
import hr_project.hr.util.pagebean;

public interface IEmpBiz {
	
	//log
	public Emp getLog(String name,String pwd);
	
	//mod
	public void modEmp(Emp e);
	
	//getbyid
	public Emp getById(long id);
	//getbyname or getbyphone
	public Emp getByQuery(String key);
		
	
	//page_query   all
	public pagebean getAll(QueryEmp query,int page);
	
	public pagebean getDel(QueryEmp query,int page);
	
	public void addEmp(Emp e);
	
	
	public List<Emp> getOther(long depid);
	
	
	//根据部门id，查询部门经理
	public Emp getManageById(long dep_id);
	
	//统计部门人数（制作柱状图）
	public List<Map<String, Object>> getCount();
	
	
	//统计部门薪资（制作饼图）
	public List<Map<String, Object>> getCountsum();
	
	//导出部门信息
  	public XSSFWorkbook emexcel();
  	
  	//查询所有员工
  	public List<Emp> getAllxx();
	
	
}
